import React, {Component} from 'react';

export default class MyIcon extends Component {
    render () {
        let t = this;
        let {type, text, style, onClick, className, fontStyle, title} = t.props;
        return (
            <i title={title} onClick={onClick} className={`iconfont ${className} ` + type} style= {{cursor:'pointer',...style}}>
                <span style = {fontStyle}>{text}</span>
            </i>
        )
    }
}